lst = [1, 4, 9, 16, 2, 5, 10, 15]
i = 0
lst2 = []
while i < len(lst) - 1:
    lst2.append(lst[i]+lst[i+1])
    i+=1
else:
    print(lst2)

# 做的不错, 结尾的else不用加